let fs=require('fs');
let Mock=require('mockjs')

let data=Mock.mock({
    "data|100":[{
        img:"@image(100x100,@color)",
        nmae:"@cword(5,8)",
        price:/\d{2,4}/,
        count:/\d{2,4}/
    }]
})
fs.writeFileSync('./data.json',JSON.stringify(data.data)) 